/*
    Copyright 2009 Michael Ogawa

    This file is part of Wordookie.

    Wordookie is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Wordookie is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Wordookie.  If not, see <http://www.gnu.org/licenses/>.
*/

import wordookie.*;

// create font
PFont font = createFont( "SansSerif", 48 );

// decide on a background color
color backgroundColor = color(0);

// initialize canvas
size( 640, 480 );
background( backgroundColor );

// create the Wordookie layout engine
Layout layout = new Layout( this, backgroundColor );

// create the "Hello" word
Word hello = new Word( "Hello", font );
// place the "Hello"
layout.doLayout( hello );
// white font color
fill( 255 );
// draw the "Hello"
layout.paintWord( hello );

// do "Wordookie!" similarly, but with larger blue font
Word world = new Word( "Wordookie!", font, 100 );
layout.doLayout( world );
fill( 0, 128, 255 );
layout.paintWord( world );

